package org.wzy.xmlg_backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 班级表
 * </p>
 *
 * @author 位置杨
 * @since 2025-01-27
 */
@Schema(description = "班级表")
public class Class implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 班级名称
     */
    @Schema(description = "班级名称")
    private String name;

    /**
     * 年级
     */
    @Schema(description = "年级")
    private String grade;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 获取主键ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取班级名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置班级名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取年级
     */
    public String getGrade() {
        return grade;
    }

    /**
     * 设置年级
     */
    public void setGrade(String grade) {
        this.grade = grade;
    }

    /**
     * 获取创建时间
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取修改时间
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置修改时间
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Class{" +
                "id=" + id +
                ", name=" + name +
                ", grade=" + grade +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}